/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package sdk.weinxin.beans.kfmessage;

import com.fasterxml.jackson.annotation.JsonTypeName;
import sdk.weinxin.beans.media.Text;

/**
 *
 * @author 张森
 */
@JsonTypeName(value = TextKfMessage.TYPE)
public class TextKfMessage extends KfMessage {
    
        public static final String TYPE = "text";
        
        public TextKfMessage() {
            this.setMsgtype(TYPE);
        }

	public TextKfMessage(String touser) {
		super(touser,TYPE);
	}

	public TextKfMessage(String touser,String content){
		this(touser);
		this.text = new Text(content);
	}
	
	private Text text;

	public Text getText() {
		return text;
	}
	
	public void setText(Text text) {
		this.text = text;
	}
}
